{% extends "index.html" %}
{% block title %}
    出版社列表
{% endblock %}
{% block nav-list %}
    <a href="/" class="list-group-item list-group-item-action">首页</a>
    <a href="/book/list" class="list-group-item list-group-item-action">图书列表</a>
    <a href="/author/list" class="list-group-item list-group-item-action">作者列表</a>
    <a href="/publish/list" class="list-group-item list-group-item-action border-info bg-info text-white">出版社列表</a>
    <a class="list-group-item list-group-item-action disabled">更多</a>
{% endblock %}
{% block content-title %}
    出版社列表
{% endblock %}
{% block content %}
    <table class="table table-striped table-hover">
        <thead>
        <td>ID</td>
        <td>出版社名称</td>
        <td>出版社地址</td>
        <td>操作</td>
        </thead>
        <tbody>
        {% for publish in publish_queryset %}
            <tr>
                <td>{{ publish.pk }}</td>
                <td>{{ publish.name }}</td>
                <td>{{ publish.addr }}</td>
                <td>
                    <a class="btn btn-info" href="/publish/add">添加</a>
                    <a class=" btn btn-secondary" href="/publish/modify/?publish_id={{ publish.pk }}">修改</a>
                    <a class="btn btn-danger" href="/publish/delete/?publish_id={{ publish.pk }}">删除</a>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
    {{ page_html }}
{% endblock %}